package com.baboba.rummy.web.client.card;

import java.util.LinkedList;
import java.util.List;

import com.baboba.rummy.card.UserCard;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HorizontalPanel;

public class IceBreakView extends Composite {
	private HorizontalPanel topContainer;

	public IceBreakView() {
		topContainer = new HorizontalPanel();
		topContainer.setSpacing(10);
		this.initWidget(topContainer);
	}

	public void showIceBreak(List<LinkedList<UserCard>> cards) {
		topContainer.clear();

		for (LinkedList<UserCard> cardList : cards)
			topContainer.add(new CardListView(cardList));
	}
}
